package com.yimils.core.goods.serivce;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yimils.core.goods.entity.GoodsPersonEntity;
import com.yimils.core.goods.vo.GoodsPersonRes;

import java.util.List;
import java.util.Map;

public interface GoodsPersonService extends IService<GoodsPersonEntity> {

    Boolean saveGoodsPerson(List<Long> personIds, Long goodsId);

    Boolean deleteGoodsPerson(List<Long> personIds, Long goodsId);

    Map<Long, List<GoodsPersonRes>> mapListGoodsPerson(List<Long> goodsIds);
}
